package main

import "fmt"

func main() {
	s := &Student{1, "20200010001"}
	fmt.Println(s)
	fmt.Println(s.getId())
	s.print()
}

type Student struct {
	Id int
	StuNo string
}

func (stu *Student) getId() int {
	return stu.Id
}

func (stu *Student) print() {
	fmt.Printf("id=%d, stuNo=%s\n", stu.Id, stu.StuNo)
}